package com.property;

//使用构造函数注入属性

public class User {
    String username;

    public User(String username){
        this.username=username;

    }
    public void test(){

        System.out.println("hello   "+username);
    }
}
